package com.gpframework.module.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gpframework.module.sys.domain.SysAnnouncement;
import com.gpframework.module.sys.domain.vo.SysAnnouncementVo;
import com.gpframework.module.sys.mapper.sysAnnouncementMapper;
import com.gpframework.module.sys.service.ISysAnnouncementService;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @ClassName sysAnnouncement
 * @Author gpframework
 * @Date 2022-08-23
 * @Version 1.0.0
 * @Description 系统公告Service业务层处理
 */
@Service
public class SysAnnouncementServiceImpl extends ServiceImpl<sysAnnouncementMapper, SysAnnouncement> implements ISysAnnouncementService {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2022-08-23
     * @Param [lqw]
     * @Return List<sysAnnouncementVo>
     */
    @Override
    public List<SysAnnouncementVo> listVo(QueryWrapper<SysAnnouncement> lqw) {
        return this.baseMapper.listVo(lqw);
    }

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2022-08-23
     * @Param [id]
     * @Return sysAnnouncementVo
     */
    @Override
    public SysAnnouncementVo getVoById(Long id) {
        return this.baseMapper.getVo(id);
    }

}
